package com.zfz.power.helloworld.service;

import com.zfz.power.common.User;
import com.zfz.power.helloworld.dao.UserDao;

/**
 * @Description:
 * @Author: zhoufuzong
 * @Created: 2020-12-05 11:01:04
 * @Version: 1.1.0
 */

public class UserService {


    private UserDao userDao;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    public int queryUserCount(){
        return userDao.getCount();
    }

    public void saveUser(User user){
        userDao.insertUser(user);
    }
}
